﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Quotation.Combo
{
    public class BasicInfo : BasicInfoBase
    {
        /// <summary>
        /// 所属用户的唯一标识
        /// </summary>
        public string AuthCode { get; set; }

        /// <summary>
        /// 用户定义的组合代码
        /// </summary>
        public string UserDefinedCode { get; set; }

        /// <summary>
        /// 追踪指数代码
        /// </summary>
        public SymbolCode TracingIndex { get; set; }

        /// <summary>
        /// 合约乘数
        /// </summary>
        public int ContractTimes { get; set; }

        /// <summary>
        /// 篮子类型
        /// </summary>
        public BasketType BasketType { get; set; }

        /// <summary>
        /// 成分股数量
        /// </summary>
        public int ExchangeStockCount { get; set; }

        /// <summary>
        /// 成分股
        /// </summary>
        public List<ComboComponent> Components { get; set; }

    }


    /// <summary>
    /// 组合成分股
    /// </summary>
    public class ComboComponent
    {

        /// <summary>
        /// 成分股代码
        /// </summary>
        public SymbolCode StkId { get; set; }

        /// <summary>
        /// 成分股名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public Int32 ExecuteQty { get; set; }

    }

}
